package com.ruoyi.web.controller.manager;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.manager.domain.MgServiceType;
import com.ruoyi.manager.service.IMgServiceTypeService;

import io.swagger.annotations.ApiOperation;

import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 服务类型 不存在增删改Controller
 * 
 * @author ruoyi
 * @date 2023-12-13
 */
@RestController
@RequestMapping("/manager/type")
public class MgServiceTypeController extends BaseController {
	@Autowired
	private IMgServiceTypeService mgServiceTypeService;

	/**
	 * 查询服务类型 不存在增删改列表
	 */
	@PreAuthorize("@ss.hasPermi('manager:type:list')")
	@GetMapping("/list")
	public List<MgServiceType> list(MgServiceType mgServiceType) {
		return mgServiceTypeService.selectMgServiceTypeList(mgServiceType);
	}
	
	@GetMapping("/listPriceConf")
	@ApiOperation(value = "listPriceConf", tags = {"添加服务价格配置对应的服务类型"})
	public List<MgServiceType> listPriceConf() {
		return mgServiceTypeService.selectMgServiceTypeTranslateList();
	}
	
}
